import math

def S_V(length, width, height):
    """计算长方体的表面积和体积"""
    ########################Begin##############################
    s = 2 * (length * width + length * height + width *  height)
    v =  length * width * height
    return(f'长方体的表面积为{s:.2f}, 体积为{v:.2f}')
    ########################End##############################

if __name__ == '__main__':
    length, width, height = map(float, input().split())
    geometry = S_V(length, width, height)  # 调用判断图形类型的函数
    print(geometry)                          # 输出函数运行结果

